import 'package:flutter/material.dart';
import 'package:mock_douban/model/home/home_requests_model.dart';

class HotSearchDetailPage extends StatelessWidget {
  final HomeBilibiliHotSearchModel model;

  const HotSearchDetailPage({super.key, required this.model});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("热榜详情" ?? '详情'),
      ),
      body: Padding(
        padding: const EdgeInsets.all(16.0),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            Text(
              '标题: ${model.title ?? '无标题'}',
              style: const TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
            ),
            Text(
              '热度: ${model.heat ?? '无标题'}',
              style: const TextStyle(fontSize: 20, fontWeight: FontWeight.bold,color: Colors.red),
            ),
            Text(
              '链接: ${model.link ?? '无标题'}',
              style: const TextStyle(fontSize: 20, fontWeight: FontWeight.bold,color: Colors.blue),
            ),
            const SizedBox(height: 16),
          ],
        ),
      ),
    );
  }
}